import Movie from './../views/home' ;
import { Redirect} from 'mirrorx'

import LoadComponent from "./../component/LoadComponent";

import CacheComponent from "./../component/cacheComponent";

let Book = LoadComponent(() => import('./../views/book')) ;
let MovieDetail = LoadComponent(() => import('./../views/movieDetail')) ;
let Child = LoadComponent(() => import('./../views/homeChild')) ;
export default [
    {
        path: '/',
        exact:true,
        component: <Redirect to="/Movie" />
    },
    {
        path: '/Movie',
        component: <Movie/>,
        exact:true,
        children:[
            {
                path: '',
                component: <Child/>,
            },
        ]
    },
    {
        path: '/MovieDetail/:id',
        component: <MovieDetail/> ,
    },
    {
        path: '/Book',
        component: <Book/>
    }
]